<?php

declare(strict_types=1);

namespace App\Controller\Kpi;

use Hyperf\HttpServer\Annotation\AutoController;
use App\Service\SysLog as SysLogService;

#[AutoController]
class SysLogController extends AbstractController
{
    // 日志列表
    public function log_list()
    {
        $per_page = $this->request->input('per_page', 10);
        $result = (new SysLogService())->logList([], (int)$per_page);
        return $this->returnSuccess($result, '成功');
    }
}
